package org.agile2soft.nexoma.tapestry.encoder;

import org.agile2soft.nexoma.controller.ServiceController;
import org.agile2soft.nexoma.entity.Service;
import org.hibernate.SessionFactory;

import br.com.arsmachina.module.service.PrimaryKeyTypeService;
import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class ServiceEncoder extends HibernateIntegerEncoder<Service> {

    public ServiceEncoder(SessionFactory sessionFactory,
            ServiceController controller) {
        super(sessionFactory, controller);
    }
//    public ServiceEncoder(SessionFactory sessionFactory,
//            ServiceController controller,
//            PrimaryKeyTypeService primaryKeyTypeService) {
//        super(sessionFactory, controller, primaryKeyTypeService);
//    }

    public String toLabel(Service service) {
        return service.getName();
    }

}
